Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Psych 4.0 (Ruby 3.1) or later #620

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Conversation

hana-da
Copy link
Contributor

@hana-da hana-da commented Feb 3, 2023

In Psych 4.0, which shipped with Ruby 3.1, Psych.load has been changed to use safe_load by default, so some documents cannot be loaded with the file resource type :content_as_yaml.

Psych 3.3.2 introduced the unsafe_load method to load trusted documents, so I changed it to use it.

In Psych 4.0, which shipped with Ruby 3.1, Psych.load has been changed to use safe_load by default,
so some documents cannot be loaded with the file resource type :content_as_yaml.

Psych 3.3.2 introduced the unsafe_load method to load trusted documents, so we changed it to use it.
@mizzy
Copy link
Owner

mizzy commented Feb 16, 2023

Sorry for my late response. I missed this PR, very sorry.

And thanks for your contribution!

@mizzy mizzy merged commit deb6fb7 into mizzy:master Feb 16, 2023
@mizzy
Copy link
Owner

mizzy commented Feb 16, 2023

Released as v2.42.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants